<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
use think\facade\Route;


//发送手机验证码
Route::get('user/mobile/getcode', 'user/getMobileCode');
//用户注册
Route::post('user/register','user/register');
//用户登录
Route::post('user/login','user/login');

//获取临时密钥
Route::get('oss/key','common/getOssTemKey');

//找回密码
Route::post('user/resetPwd','user/resetPwd');


//路由分组，user组里面的请求都要登录后才能访问
Route::group('user', function(){
    //修改资料
    Route::post('edit','user/edit');
    //修改密码
    Route::post('updatePwd','user/updatePwd');
    //上传头像
    Route::get('updateAvatar','user/updateAvatar');
    //签到
    Route::post('sign','user/sign');
})->middleware(app\pc\middleware\Auth::class);